﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.DomainModels;

namespace Repositories.Configuration
{
    public class ExpressMap : EntityConfigurationBase<Express>
    {
        public ExpressMap()
        {
            this.Property(p => p.Name).HasMaxLength(50).IsRequired();
            this.Property(p => p.Number).HasMaxLength(50).IsRequired();
            this.Property(p => p.Money).HasPrecision(18, 2);

        }
    }
}
